package cloud.seri.iot.aliyun.service.mapper

import cloud.seri.iot.common.model.CreateProductDTO
import cloud.seri.iot.common.model.ListProductByTagsDTO
import cloud.seri.iot.common.model.PageRequestDTO
import cloud.seri.iot.common.model.UpdateProductDTO
import com.aliyuncs.iot.model.v20180120.CreateProductRequest
import com.aliyuncs.iot.model.v20180120.ListProductByTagsRequest
import com.aliyuncs.iot.model.v20180120.QueryProductListRequest
import com.aliyuncs.iot.model.v20180120.UpdateProductRequest
import org.mapstruct.Mapper


@Mapper(componentModel = "spring", uses = [])
interface ProductRequestMapper
{

    fun getCreateProductRequest(dto: CreateProductDTO): CreateProductRequest

    fun getUpdateProductRequest(dto: UpdateProductDTO): UpdateProductRequest

    fun getQueryProductListRequest(dto: PageRequestDTO): QueryProductListRequest

    fun getListProductByTagsRequest(dto: ListProductByTagsDTO): ListProductByTagsRequest
}
